﻿using System.IO;
using System.Web;
using System.Text;

namespace ZHDJ.MobileInterface
{
    public sealed class RequestHelper
    {
        /// <summary>
        /// 读取请求报文
        /// </summary>
        public static string ReadRequestMessage(HttpRequest request)
        {
            request.InputStream.Position = 0;
            using (StreamReader reader = new StreamReader(request.InputStream, Encoding.UTF8))
            { return reader.ReadToEnd(); }
        }
    }
}